//
//  XLGPackFileUpIntermediate.h
//  etionCBLogic
//
//  Created by wjxfhxy on 15-4-29.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import "ProtocolTransformType.h"

@interface XLGPackUpFileObj : NSObject

@property(nonatomic,retain) NSString* fileID;
@property(nonatomic,retain) NSString* fileName;
@property(nonatomic,assign) NSUInteger length;
@property(nonatomic,retain) NSString* MD5;
@property(nonatomic,retain) NSString* contentType;
@property(nonatomic,retain) NSString* URL;
@property(nonatomic,assign) NSUInteger chunkTotal;
@property(nonatomic,assign) NSUInteger chunkSize;
@property(nonatomic,retain) NSString* uploadChunks;
@property(nonatomic,retain) NSArray* backup;

@end

@interface XLGPackUpChunkObj : NSObject

@property(nonatomic,assign) GUID chunkID;
@property(nonatomic,retain) NSString* fileID;
@property(nonatomic,retain) NSString* fileName;
@property(nonatomic,assign) NSUInteger chunkNum;
@property(nonatomic,retain) NSString* chunkRange;
@property(nonatomic,retain) NSData* data;
@property(nonatomic,retain) NSArray* param;


@end

@interface XLGPackFileInfo : NSObject<NSCoding>

@property(nonatomic,retain) NSString* fileName;
@property(nonatomic,retain) NSString* fullPath;
@property(nonatomic,readonly) NSData* packFileData;

@end

@protocol XLGPackFileUpChannelProtocolInterface <ChannelProtocolInterface>

- (CProtocolBase*)uploadFileChunksProtocol:(XLGPackUpChunkObj*)packUpFileObj;

@end

@interface XLGPackFileUpChannelProtocol : NSObject<XLGPackFileUpChannelProtocolInterface>

@end
